package org.abacus.platform.client.widget;

import java.awt.GridLayout;
import java.awt.Image;

import javax.swing.UIManager;

import org.abacus.platform.client.ResourceLoader;

public class FrameTest {
	public static void main(String... strings) {
		try {
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch (Exception e) {
			e.printStackTrace();
		}
		Frame frame = new Frame("ss");
		frame.getFrame().setLayout(null);
		frame.getFrame().setSize(300, 600);
		frame.getFrame().setLayout(new GridLayout(3, 1));
		Image image = ResourceLoader.getImage("add.gif");
		frame.getFrame().setIconImage(image);
		TextButton textButton = new TextButton("预算单位0");
		frame.getFrame().add(textButton.getPanel());

		textButton = new TextButton("预算单位1");
		frame.getFrame().add(textButton.getPanel());

		textButton = new TextButton("预算单位2");
		frame.getFrame().add(textButton.getPanel());

		frame.getFrame().setVisible(true);

		frame = new Frame("ss");
		frame.getFrame().setLayout(null);
		frame.getFrame().setSize(300, 600);
		frame.getFrame().setLayout(new GridLayout(3, 1));
		image = ResourceLoader.getImage("add.gif");
		frame.getFrame().setIconImage(image);
		textButton = new TextButton("预算单位0");
		frame.getFrame().add(textButton.getPanel());

		textButton = new TextButton("预算单位1");
		frame.getFrame().add(textButton.getPanel());

		textButton = new TextButton("预算单位2");
		frame.getFrame().add(textButton.getPanel());

		frame.getFrame().setVisible(true);
	}
}
